package com.hex.ds.hdrs.period.task.dao;

import com.hex.bigdata.hbda.base.BaseDao;
import com.hex.bigdata.hbda.base.Page;
import com.hex.ds.hdrs.period.task.po.MutexPoolGroup;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public class MutexPoolGroupDao extends BaseDao {

    public List<MutexPoolGroup> queryListByPage(MutexPoolGroup mutexPoolGroup, Page page) {
        return this.selectPage(MutexPoolGroup.class, "com.hex.ds.hdrs.period.task.dao.MutexPoolGroupDao.queryListByPage", page, mutexPoolGroup);
    }

    public void insert(MutexPoolGroup mutexPoolGroup) {
        this.insert("com.hex.ds.hdrs.period.task.dao.MutexPoolGroupDao.insert", mutexPoolGroup);
    }

    public void update(MutexPoolGroup mutexPoolGroup) {
        this.update("com.hex.ds.hdrs.period.task.dao.MutexPoolGroupDao.update", mutexPoolGroup);
    }

    public void removeByGroupCode(String groupCode) {
        this.delete("com.hex.ds.hdrs.period.task.dao.MutexPoolGroupDao.removeByGroupCode", groupCode);
    }

    public MutexPoolGroup queryByGroupCode(String groupCode) {
        return this.selectOne(MutexPoolGroup.class, "com.hex.ds.hdrs.period.task.dao.MutexPoolGroupDao.queryByGroupCode", groupCode);
    }
}